﻿@model IEnumerable<TagViewModel>
@{
	Layout = null;
}

@if (Model.Any())
{
	<ul class="unstyled">
		@foreach (var tag in Model)
		{
			<li>
				<span class="label"><a href="@Url.RouteUrl("PostsByTag", new
																			 {
																				 tag.Slug
																			 })">@tag.Name</a></span> x @tag.Count
				<span class="rss"><a href="@Url.RouteUrl("Rss", new
																	{
																		tag = tag.Slug
																	})">rss</a></span>
			</li>
		}
	</ul>
}
else
{
	<p>No tags.</p>
}